﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PaginaMaestra.Master" AutoEventWireup="true" CodeBehind="InfromesReservas.aspx.cs" Inherits="ProyectoCine.AreaPrivada.InfromesReservas" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Contenido" runat="server">
    <asp:Panel ID="Panel1" runat="server" GroupingText="Informe de Reservas" 
        ForeColor="Red" Height="523px" Font-Bold="True">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="Server" 
                        EnableScriptGlobalization="True" />    
        <table class="style1">
            <tr>
                <td>
                    <asp:Label ID="Label6" runat="server" ForeColor="Red" Text="Usuarios" 
                        Font-Bold="True"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUsuarios" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label7" runat="server" ForeColor="Red" Text="Cine" 
                        Font-Bold="True"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlCine" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label8" runat="server" ForeColor="Red" Text="Fecha Desde" 
                        Font-Bold="True"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtFechaDesde" runat="server"></asp:TextBox>
                    <asp:CalendarExtender ID="txtFechaDesde_CalendarExtender" runat="server" 
                        TargetControlID="txtFechaDesde">
                    </asp:CalendarExtender>
                </td>
                <td>
                    <asp:Label ID="Label9" runat="server" ForeColor="Red" Text="Fecha Hasta" 
                        Font-Bold="True"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtFechaHasta" runat="server"></asp:TextBox>
                    <asp:CalendarExtender ID="txtFechaHasta_CalendarExtender" runat="server" 
                        TargetControlID="txtFechaHasta">
                    </asp:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:Button ID="btnGenerar" runat="server" onclick="btnGenerar_Click" 
                        Text="Generar" />
                </td>
              
            </tr>
        </table>
        <asp:GridView ID="gvInforme" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" 
            onpageindexchanging="gvInforme_PageIndexChanging" 
            onsorting="gvInforme_Sorting" BackColor="#DEBA84" BorderColor="#DEBA84" 
            BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2">
            <Columns>
                <asp:BoundField DataField="userName" HeaderText="Usuario" 
                    SortExpression="userName" />
                <asp:BoundField DataField="id_Reserva" HeaderText="Reserva" 
                    SortExpression="id_Reserva" />
                <asp:BoundField DataField="nombre" HeaderText="Cine" SortExpression="nombre" />
                <asp:BoundField DataField="fecha" DataFormatString="{0:d}" 
                    HeaderText="Fecha de la Reserva" SortExpression="fecha" />
            </Columns>
            <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
            <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
            <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
            <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#FFF1D4" />
            <SortedAscendingHeaderStyle BackColor="#B95C30" />
            <SortedDescendingCellStyle BackColor="#F1E5CE" />
            <SortedDescendingHeaderStyle BackColor="#93451F" />
        </asp:GridView>
    </asp:Panel>
</asp:Content>
